home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-13 | 2.2 KB | 89 lines | [TEXT/ttxt] |
- --<<<
- module DTK
- uses ScriptX
-
- exports DTKCastTranslator
- exports instance variables
- outputStream, -- Where author wants data to go
- container, -- The Container to save to
- dtk -- The DTK running this translator
-
- exports DTKScoreTranslator
- exports instance variables
- outputStream, -- Where author wants data to go
- container, -- The Container to save to
- dtk, -- The DTK running this translator
- castList -- The list of converted cast members
-
- exports DTKCastMemberToPresenter
- exports instance variables
- patternCache,
- shapeClass,
- bitmapClass,
- textClass,
- videoClass
-
- exports DTKCastMemberToStencil
- exports DTKCastMemberToAudioStream
-
- end
- module DTKAssemble
- uses scriptX, DTK
- end
- in module DTKAssemble
-
- (
- local ld := new loader
- local devgroup := getgroup ld "loadable/dtk"
- local devunit := getLoadableUnit devgroup "directordriver"
- local devid := loadmodule ld devgroup devunit
- loaderValue ld devid
-
- local devunit2 := getLoadableUnit devgroup "dtk"
- local devid2 := loadmodule ld devgroup devunit2
- loaderValue ld devid2
- OK
- )
-
- global dtktc
-
- global sourceDir := spawn theStartDir "utils/dtk/source/DTK_sx"
- global dtkModule := GetModule @DTK
-
- fileIn sourceDir name:"casttran.sx" module:dtkModule
- fileIn sourceDir name:"caststen.sx" module:dtkModule
- fileIn sourceDir name:"castpres.sx" module:dtkModule
- fileIn sourceDir name:"castaud.sx" module:dtkModule
-
- fileIn sourceDir name:"scortran.sx" module:dtkModule
-
- in module DTKAssemble
- sourceDir := empty
- dtktc := new TitleContainer path:"utils/dtk/dtk.sxt" name:"DTK"
- append dtktc dtkModule
-
- -- We need preStartupAction because of a bug in LibraryContainer where
- -- 'used' libraries don't get their startupAction called.
-
- dtktc.prestartUpAction := (dtktc -> (
- local ld := new loader
- local devgroup := getgroup ld "loadable/dtk"
- local devunit := getLoadableUnit devgroup "directordriver"
- local devid := loadmodule ld devgroup devunit
- loaderValue ld devid
-
- local devunit2 := getLoadableUnit devgroup "dtk"
- local devid2 := loadmodule ld devgroup devunit2
- loaderValue ld devid2
-
- foreach dtktc load undefined
- OK
- ))
-
- close dtktc
-
-
- --in module Scratch
-
- -->>>
-